package vip.xiaonuo.biz.modular.advice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.transaction.annotation.Transactional;
import vip.xiaonuo.biz.modular.advice.entity.BizAdvice;
import vip.xiaonuo.biz.modular.advice.param.BizAdviceAddParam;
import vip.xiaonuo.biz.modular.advice.param.BizAdviceEditParam;
import vip.xiaonuo.biz.modular.advice.param.BizAdviceIdParam;
import vip.xiaonuo.biz.modular.advice.param.BizAdvicePageParam;

import java.util.List;

public interface BizAdviceService {
    Page<BizAdvice> page(BizAdvicePageParam bizAdvicePageParam);

    @Transactional(rollbackFor = Exception.class)
    void add(BizAdviceAddParam bizAdviceAddParam);

    @Transactional(rollbackFor = Exception.class)
    void edit(BizAdviceEditParam bizAdviceEditParam);

    @Transactional(rollbackFor = Exception.class)
    void delete(List<BizAdviceIdParam> bizAdviceIdParamList);

    BizAdvice detail(BizAdviceIdParam bizAdviceIdParam);

    BizAdvice queryEntity(String id);
}
